package com.neighbor.neighborhooduser.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商城兑换订单表
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:13:04
 */
@Getter
@Setter
@TableName("mall_orders")
public class MallOrders {

    /**
     * 订单唯一ID
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单号
     */
    @TableField("order_number")
    private String orderNumber;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 商品ID
     */
    @TableField("product_id")
    private Integer productId;

    /**
     * 购买数量
     */
    @TableField("quantity")
    private Integer quantity;

    /**
     * 消耗积分
     */
    @TableField("points_amount")
    private Integer pointsAmount;

    /**
     * 状态(1:待发货,2:已发货,3:已完成)
     */
    @TableField("status")
    private Byte status;

    /**
     * 收货信息
     */
    @TableField("shipping_info")
    private String shippingInfo;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;

    /**
     * 更新时间
     */
    @TableField("updated_at")
    private Date updatedAt;
}
